import { GET as get, POST as post } from '../axios.config.js'

const base = window.config.ip
const projectName = '/rcdg-record'
const projectName1 = '/topnet-assess'
const projectName2 = '/jx-backstage'

// 获取所有类型数量
export const selectAllBulletinNumByType = p => get(`${base}${projectName2}/bulletion/selectAllBulletinNumByType`, p)

// 获取消息列表
export const listNotices = p => get(`${base}${projectName}/notice/listNotices`, p)

// 根据类型获取消息列表
export const listNoticesByType = p => post(`${base}${projectName}/notice/listNoticesByType`, p)

// 根据类型获取消息列表
export const listNoticesByTypeTop = p => post(`${base}${projectName1}/std-notice/listNoticesByType`, p)

// 更新消息为已读
export const updateNoticeRead = p => post(`${base}${projectName}/notice/updateNoticeRead`, p)
